-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: refactor test-repl-definecommand #17795
Conversation
The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM
assert(/\n\.say1 help for say1\n/.test(output), | ||
'help for say1 not present'); | ||
assert.ok(/\n\.say1 help for say1\n/.test(output), | ||
'help for say1 not present'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be a independent change. I do not really see why this should be changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to standardize on assert.ok()
for tests, but I see I also missed one on another line. Anyway, yes, it's unnecessary, so I'll undo it.
The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error. PR-URL: nodejs#17795 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
Landed in c90b10d |
The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error. PR-URL: #17795 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error. PR-URL: #17795 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error. PR-URL: #17795 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error. PR-URL: #17795 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error. PR-URL: #17795 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error. PR-URL: #17795 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error. PR-URL: #17795 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error. PR-URL: #17795 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
The test was writing to both REPL input and output but only checking output. Sending output to both streams seems like it was an error. PR-URL: #17795 Reviewed-By: Jon Moss <[email protected]> Reviewed-By: James M Snell <[email protected]>
The test was writing to both REPL input and output but only checking
output. Sending output to both streams seems like it was an error.
/cc @bmeck
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test repl